home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / MacODBC / ODBC Tools / InstallerSource / ODBC2.0install.r < prev    next >
Encoding:
Text File  |  1995-04-18  |  17.0 KB  |  724 lines  |  [TEXT/MPS ]

  1. /*
  2.  **************************************************************************
  3.  *
  4.  *    ODBC 2.0 INSTALL
  5.  *
  6.  **************************************************************************
  7.  */
  8.  
  9. /* constants for Gestalt call to determine whether PowerMac or 68K CPU    */
  10.  
  11. #define gestaltSystemType            'sysa'  // tells Gestalt to check CPU
  12. #define gestalt68Ksysa                1        // tells Gestalt to look for 68K CPU's
  13. #define gestaltPPCsysa                2        // tells Gestalt to look for PowerMac CPU's
  14.  
  15.  
  16. #define kScriptCheckSetsDate    0x01
  17.  
  18. /*
  19.  **************************************************************************
  20.  *
  21.  *    Power Mac Installation definitions.
  22.  *
  23.  **************************************************************************
  24.  */
  25.  
  26. /*
  27.  *    All PowerMac resource ids are in the 5000 range.
  28.  *
  29.  *    inrl        -    Installer Rule
  30.  *    inpk        -    Installer Package
  31.  *    infa        -    Installer File Atom
  32.  *    infss        -    Installer File Spec Source
  33.  *    infsd        -    Installer File Spec Destination
  34.  */
  35.  
  36. #define kPPCinrl                    5000
  37. #define kPPCinpk                    5001
  38. #define kPPCinfaSetup                5002
  39. #define kPPCinfssSetup                5003
  40. #define kPPCinfsdSetup                5004
  41. #define kPPCinfaDriverManager        5005
  42. #define kPPCinfssDriverManager        5006
  43. #define kPPCinfsdDriverManager        5007
  44. #define kPPCinfaConfigManager        5008
  45. #define kPPCinfssConfigManager        5009
  46. #define kPPCinfsdConfigManager        5010
  47. #define kPPCinfaCursorLibrary        5011
  48. #define kPPCinfssCursorLibrary        5012
  49. #define kPPCinfsdCursorLibrary        5013
  50.  
  51. /*
  52.  *    The numbering of the 68k resources has not been altered from the original 1.0
  53.  */
  54. #define k68kinrl            1000
  55. #define k68kinpk            3000
  56.  
  57. /* 
  58.  *    Installer Frame Rule.
  59.  *    The set of changes made here are intended to be integrated with the 
  60.  *    ASLM installation installer resources.
  61.  *
  62.  *    This installer frame rule has been commented out.  The frame rule from the
  63.  *    ASLM installer script is being used as the master rule and the ODBC Package
  64.  *    has been incorporated into it.
  65.  *
  66.  */
  67. #if 0
  68. resource 'infr' (0) {
  69.     format0 {
  70.         {/* ODBC PACKAGE ADDITION */
  71.             pickFirst,
  72.             {    /* array IntegerArray: 1 elements */
  73.                 /* [1] */
  74.                 kPPCinrl,
  75.                 /* [2] */
  76.                 k68kinrl
  77.             }
  78.  
  79.         }
  80.     }
  81. };
  82. #endif
  83.  
  84. /*
  85.  ****************************************************************************
  86.  *
  87.  *    The following set of resource definitions are for the Power Mac
  88.  *    installation
  89.  *
  90.  ****************************************************************************
  91.  */
  92.  
  93. /*
  94.  *    The following rule is for the PowerMac installation
  95.  */
  96. resource 'inrl' (kPPCinrl) {
  97.     format0 {{
  98.         /* this returns false unless CPU is Power Macintosh        */
  99.         CheckGestalt{ gestaltSystemType, { gestaltPPCsysa }},
  100.         
  101.         /* if Power Macintosh CPU then add both the PowerMac Package and the 68k Package    */
  102.         AddPackages{{ kPPCinpk, k68kinpk }},
  103.         AddUserDescription{ "\n• ODBC for PowerMac and ODBC for 680X0." },
  104.     }}
  105. };
  106.  
  107. /*
  108.  *    The following rule is for the PowerMac installation
  109.  */
  110. resource 'inpk' (kPPCinpk) {
  111.     format0 {
  112.         showsOnCustom,
  113.         removable,
  114.         dontForceRestart,
  115.         0,
  116.         0,
  117.         "ODBC for PowerMac",
  118.         {    /* array partsList: 3 elements */
  119.             /* [1] */
  120.             'infa', kPPCinfaSetup,
  121.             /* [2] */
  122.             'infa', kPPCinfaDriverManager,
  123.             /* [3] */
  124.             'infa', kPPCinfaConfigManager,
  125.             /* [4] */
  126.             'infa', kPPCinfaCursorLibrary
  127.         }
  128.     }
  129. };
  130.  
  131. resource 'infa' (kPPCinfaSetup) {
  132.     format0 {
  133.         deleteWhenRemoving,
  134.         deleteWhenInstalling,
  135.         copy,
  136.         updateEvenIfNewer,
  137.         updateExisting,
  138.         copyIfNewOrUpdate,
  139.         rsrcFork,
  140.         dataFork,
  141.         kPPCinfsdSetup,
  142.         kPPCinfssSetup,
  143.         0,
  144.         ""
  145.     }
  146. };
  147.  
  148. resource 'infs' (kPPCinfssSetup) {
  149.     'cdev',
  150.     'hack',
  151.     kScriptCheckSetsDate,
  152.     noSearchForFile,
  153.     TypeCrMustMatch,
  154.     "ODBC Install:ODBC Files:ODBC Setup PPC"
  155. };
  156.  
  157. resource 'infs' (kPPCinfsdSetup) {
  158.     'cdev',
  159.     'hack',
  160.     0x0,
  161.     noSearchForFile,
  162.     TypeCrMustMatch,
  163.     "special-ctrl:ODBC Setup PPC"
  164. };
  165.  
  166.  
  167. resource 'infa' (kPPCinfaDriverManager) {
  168.     format0 {
  169.         deleteWhenRemoving,
  170.         deleteWhenInstalling,
  171.         copy,
  172.         updateEvenIfNewer,
  173.         updateExisting,
  174.         copyIfNewOrUpdate,
  175.         rsrcFork,
  176.         dataFork,
  177.         kPPCinfsdDriverManager,
  178.         kPPCinfssDriverManager,
  179.         0,
  180.         ""
  181.     }
  182. };
  183.  
  184. resource 'infs' (kPPCinfssDriverManager) {
  185.     'shlb',
  186.     'cfmg',
  187.     kScriptCheckSetsDate,
  188.     noSearchForFile,
  189.     TypeCrMustMatch,
  190.     "ODBC Install:ODBC Files:ODBC Driver Manager PPC"
  191. };
  192.  
  193. resource 'infs' (kPPCinfsdDriverManager) {
  194.     'shlb',
  195.     'cfmg',
  196.     0x0,
  197.     noSearchForFile,
  198.     TypeCrMustMatch,
  199.     "special-extn:ODBC Driver Manager PPC"
  200. };
  201.  
  202.  
  203. resource 'infa' (kPPCinfaConfigManager) {
  204.     format0 {
  205.         deleteWhenRemoving,
  206.         deleteWhenInstalling,
  207.         copy,
  208.         updateEvenIfNewer,
  209.         updateExisting,
  210.         copyIfNewOrUpdate,
  211.         rsrcFork,
  212.         dataFork,
  213.         kPPCinfsdConfigManager,
  214.         kPPCinfssConfigManager,
  215.         0,
  216.         ""
  217.     }
  218. };
  219.  
  220. resource 'infs' (kPPCinfssConfigManager) {
  221.     'shlb',
  222.     'cfmg',
  223.     kScriptCheckSetsDate,
  224.     noSearchForFile,
  225.     TypeCrMustMatch,
  226.     "ODBC Install:ODBC Files:ODBC Configuration Manager PPC"
  227. };
  228.  
  229. resource 'infs' (kPPCinfsdConfigManager) {
  230.     'shlb',
  231.     'cfmg',
  232.     0x0,
  233.     noSearchForFile,
  234.     TypeCrMustMatch,
  235.     "special-extn:ODBC Configuration Manager PPC"
  236. };
  237.  
  238. resource 'infa' (kPPCinfaCursorLibrary) {
  239.     format0 {
  240.         deleteWhenRemoving,
  241.         deleteWhenInstalling,
  242.         copy,
  243.         updateEvenIfNewer,
  244.         updateExisting,
  245.         copyIfNewOrUpdate,
  246.         rsrcFork,
  247.         dataFork,
  248.         kPPCinfsdCursorLibrary,
  249.         kPPCinfssCursorLibrary,
  250.         0,
  251.         ""
  252.     }
  253. };
  254.  
  255. resource 'infs' (kPPCinfssCursorLibrary) {
  256.     'shlb',
  257.     'cfmg',
  258.     kScriptCheckSetsDate,
  259.     noSearchForFile,
  260.     TypeCrMustMatch,
  261.     "ODBC Install:ODBC Files:ODBC Cursor Library PPC"
  262. };
  263.  
  264. resource 'infs' (kPPCinfsdCursorLibrary) {
  265.     'shlb',
  266.     'cfmg',
  267.     0x0,
  268.     noSearchForFile,
  269.     TypeCrMustMatch,
  270.     "special-extn:ODBC Cursor Library PPC"
  271. };
  272.  
  273.  
  274.  
  275.  
  276. /*
  277.  ****************************************************************************
  278.  *
  279.  *    The following set of definitions are for the 68k installation
  280.  *    and original ODBC 1.0 definitions.
  281.  *
  282.  ****************************************************************************
  283.  */
  284.  
  285. /* source disks */
  286. #define dASLMInstall "ASLM Installer"
  287. #define dODBCInstall "ODBC Install"
  288.  
  289. #define dODBCTools    "ODBC Tools"
  290. #define Folder1        "SampleSetup"
  291. #define Folder2        "SampleTranslate"
  292. #define Folder3        "SampleDriver"
  293. #define ODBCTest    "ODBC Test"
  294. #define Driver        "ODBC Sample Driver"
  295. #define Setup        "ODBC Sample DBMS Setup"
  296. #define Translate    "ODBC Sample Data Translate"
  297. #define ODBCapp        "ODBC Test"
  298.  
  299. #define pkODBCTools        9000
  300.  
  301. #define faSampleDriver            10100
  302. #define faSampleDBMSSetup        10110
  303. #define faSampleDataTranslate    10120
  304. #define faODBCapp                10130
  305.  
  306. #define fsSrcSampleDriver        10200
  307. #define fsSrcSampleSetup        10210
  308. #define fsSrcSampleTranslate    10220
  309. #define fsSrcODBCapp            10230
  310.  
  311. #define fsTargetSampleDriver    10300
  312. #define fsTargetSampleSetup        10310
  313. #define fsTargetSampleTranslate    10320
  314. #define fsTargetODBCapp            10330
  315.  
  316. #define DiskOrder 999 /* definition for 'indo' resource ID */
  317. #define pkDivider1                1
  318. #define pkDivider2                2
  319.  
  320. resource 'invs' (1) {
  321.     format0 {
  322.         0x3,
  323.         0x40,
  324.         release,
  325.         0x0,
  326.         "3.4"
  327.     }
  328. };
  329.  
  330. #if 0
  331. resource 'invs' (1) {
  332.     format0 {
  333.         0x4,
  334.         0x03,
  335.         release,
  336.         0x0,
  337.         "4.0.3"
  338.     }
  339. };
  340. #endif
  341.  
  342. resource 'indo' (DiskOrder) {
  343.     format0 {{
  344.         "ODBC Install",
  345.         "ODBC Tools"        
  346.     }};
  347. };
  348.  
  349. /*
  350.  *    The following rule is for the 68k installation
  351.  */
  352. resource 'inrl' (k68kinrl) {
  353.     format0 {
  354.         {    /* array Rules: 2 elements */
  355.     
  356.             /* [2] */
  357.             addPackages 
  358.             {
  359.                 {    /* array IntegerArray: 1 elements */
  360.                     /* [1] */
  361.                     3000
  362.                 }
  363.             },
  364.             AddUserDescription{ "\n• ODBC for 680X0." },
  365.         }
  366.     }
  367. };
  368.  
  369. #if 0
  370. resource 'inpk' (pkDivider1) {
  371.     format0 {
  372.         showsOnCustom,             /* Package appears in the Custom Install display */
  373.         notRemovable,            /* Package can't be removed */
  374.         dontForceRestart,        /* divider doesnt require rebooting */
  375.         0,                         /* 'icmt' not required */
  376.         0,                        /* Package size (filled in by ScriptCheck) */
  377.         "-", {'    ', 0; }        /* package name - divider */
  378.     }
  379. };
  380. #endif
  381.  
  382. resource 'inpk' (3000) {
  383.     format0 {
  384.         showsOnCustom,
  385.         removable,
  386.         dontForceRestart,
  387.         0,
  388.         0,
  389.         "ODBC",
  390.         {    /* array partsList: 3 elements */
  391.             /* [1] */
  392.             'infa', 4000,
  393.             /* [2] */
  394.             'infa', 4001,
  395.             /* [3] */
  396.             'infa', 4002,
  397.             /* [4] */
  398.             'infa', 4003
  399.         }
  400.     }
  401. };
  402.  
  403. #ifdef DEVELOP
  404. resource 'inpk' (pkDivider2) {
  405.     format0 {
  406.         showsOnCustom,             /* Package appears in the Custom Install display */
  407.         notRemovable,            /* Package can't be removed */
  408.         dontForceRestart,        /* divider doesnt require rebooting */
  409.         0,                         /* 'icmt' not required */
  410.         0,                        /* Package size (filled in by ScriptCheck) */
  411.         "-", {'    ', 0 }        /* package name - divider */
  412.     }
  413. };
  414. #endif
  415.  
  416. resource 'infs' (2000) {
  417.     'cdev',
  418.     'hack',
  419.     kScriptCheckSetsDate,
  420.     noSearchForFile,
  421.     TypeCrMustMatch,
  422.     "ODBC Install:ODBC Files:ODBC Setup"
  423. };
  424.  
  425. resource 'infs' (2001) {
  426.     'cdev',
  427.     'hack',
  428.     0x0,
  429.     noSearchForFile,
  430.     TypeCrMustMatch,
  431.     "special-ctrl:ODBC Setup"
  432. };
  433.  
  434. resource 'infs' (2002) {
  435.     'libr',
  436.     'OMGR',
  437.     kScriptCheckSetsDate,
  438.     noSearchForFile,
  439.     TypeCrMustMatch,
  440.     "ODBC Install:ODBC Files:ODBC Driver Mana"
  441.     "ger"
  442. };
  443.  
  444. resource 'infs' (2003) {
  445.     'libr',
  446.     'OMGR',
  447.     0x0,
  448.     noSearchForFile,
  449.     TypeCrMustMatch,
  450.     "special-extn:ODBC Driver Manager"
  451. };
  452.  
  453. resource 'infs' (2004) {
  454.     'libr',
  455.     'OMGR',
  456.     kScriptCheckSetsDate,
  457.     noSearchForFile,
  458.     TypeCrMustMatch,
  459.     "ODBC Install:ODBC Files:ODBC Configurati"
  460.     "on Manager"
  461. };
  462.  
  463. resource 'infs' (2005) {
  464.     'libr',
  465.     'OMGR',
  466.     0x0,
  467.     noSearchForFile,
  468.     TypeCrMustMatch,
  469.     "special-extn:ODBC Configuration Manager"
  470. };
  471.  
  472. resource 'infs' (2006) {
  473.     'libr',
  474.     'OMGR',
  475.     kScriptCheckSetsDate,
  476.     noSearchForFile,
  477.     TypeCrMustMatch,
  478.     "ODBC Install:ODBC Files:ODBC Cursor Libr"
  479.     "ary"
  480. };
  481.  
  482. resource 'infs' (2007) {
  483.     'libr',
  484.     'OMGR',
  485.     0x0,
  486.     noSearchForFile,
  487.     TypeCrMustMatch,
  488.     "special-extn:ODBC Cursor Library"
  489. };
  490.  
  491. resource 'infa' (4000) {
  492.     format0 {
  493.         deleteWhenRemoving,
  494.         deleteWhenInstalling,
  495.         copy,
  496.         updateEvenIfNewer,
  497.         updateExisting,
  498.         copyIfNewOrUpdate,
  499.         rsrcFork,
  500.         dataFork,
  501.         2001,
  502.         2000,
  503.         0,
  504.         ""
  505.     }
  506. };
  507.  
  508. resource 'infa' (4001) {
  509.     format0 {
  510.         deleteWhenRemoving,
  511.         deleteWhenInstalling,
  512.         copy,
  513.         updateEvenIfNewer,
  514.         updateExisting,
  515.         copyIfNewOrUpdate,
  516.         rsrcFork,
  517.         dataFork,
  518.         2003,
  519.         2002,
  520.         0,
  521.         ""
  522.     }
  523. };
  524.  
  525. resource 'infa' (4002) {
  526.     format0 {
  527.         deleteWhenRemoving,
  528.         deleteWhenInstalling,
  529.         copy,
  530.         updateEvenIfNewer,
  531.         updateExisting,
  532.         copyIfNewOrUpdate,
  533.         rsrcFork,
  534.         dataFork,
  535.         2005,
  536.         2004,
  537.         0,
  538.         ""
  539.     }
  540. };
  541.  
  542. resource 'infa' (4003) {
  543.     format0 {
  544.         deleteWhenRemoving,
  545.         deleteWhenInstalling,
  546.         copy,
  547.         updateEvenIfNewer,
  548.         updateExisting,
  549.         copyIfNewOrUpdate,
  550.         rsrcFork,
  551.         dataFork,
  552.         2007,
  553.         2006,
  554.         0,
  555.         ""
  556.     }
  557. };
  558.  
  559.  
  560.  
  561. //data 'incd' (0) {
  562. //    $"A85F 183D"                                          /* ®_.= */
  563. //};
  564.  
  565. /**************************ODBC TOOLS INSTALL ***************************************************/
  566.  
  567. /***************************** Package Resources ************************************************/
  568. #ifdef DEVELOP
  569. resource 'inpk' (pkODBCTools) {
  570.     format0 {
  571.         showsOnCustom,             /* Package appears in the Custom Install display */
  572.         removable,                /* Package can be removed */
  573.         dontForceRestart,        /* installing an app doesnt require rebooting */
  574.         0,                         /* 'icmt' not required */
  575.         0,                        /* Package size (filled in by ScriptCheck) */
  576.         "ODBC Tools", {            /* package name */
  577.             'infa', faSampleDriver,
  578.             'infa', faSampleDBMSSetup,
  579.             'infa', faSampleDataTranslate,
  580.             'infa',    faODBCapp
  581.         }
  582.     }
  583. };
  584.  
  585. /********************************************* File Specs ***************************************/
  586. /* Source File Specs */
  587. resource 'infs' (fsSrcSampleDriver) {
  588.     'libr',                                /* File Type */
  589.     'OMGR',                                /* Creator */
  590.     kScriptCheckSetsDate,                /* ScriptCheck will fill in the creation date */
  591.     noSearchForFile,                    /* Do not search the source disk for the file */
  592.     typeCrMustMatch,                    /* file type and creator on this file must match */
  593.     dODBCTools":"Folder3":"Driver        /* Path to the file */
  594. };
  595.  
  596. resource 'infs' (fsSrcSampleSetup) {
  597.     'libr',                                /* File Type */
  598.     'OMGR',                                /* Creator */
  599.     kScriptCheckSetsDate,                /* ScriptCheck will fill in the creation date */
  600.     noSearchForFile,                    /* Do not search the source disk for the file */
  601.     typeCrMustMatch,                    /* file type and creator on this file must match */
  602.     dODBCTools":"Folder1":"Setup            /* installation Path */
  603. };
  604.  
  605. resource 'infs' (fsSrcSampleTranslate) {
  606.     'libr',                                /* File Type */
  607.     'OMGR',                                /* Creator */
  608.     kScriptCheckSetsDate,                /* ScriptCheck will fill in the creation date */
  609.     noSearchForFile,                    /* Do not search the source disk for the file */
  610.     typeCrMustMatch,                    /* file type and creator on this file must match */
  611.     dODBCTools":"Folder2":"Translate        /* installation Path */
  612. };
  613.  
  614. resource 'infs' (fsSrcODBCapp) {
  615.     'APPL',                                /* File Type */
  616.     'XXXX',                                /* Creator */
  617.     kScriptCheckSetsDate,                /* ScriptCheck will fill in the creation date */
  618.     noSearchForFile,                    /* Do not search the source disk for the file */
  619.     typeCrMustMatch,                    /* file type and creator on this file must match */
  620.     dODBCTools":"ODBCTest":"ODBCapp        /* Path to the file */
  621. };
  622.  
  623. /* Target File Specs */
  624. resource 'infs' (fsTargetSampleDriver) {
  625.     'libr',                                /* File Type */
  626.     'OMGR',                                /* Creator */
  627.     0,                                    /* not needed for target file spec */
  628.     noSearchForFile,                    /* Do not search the target disk for the file */
  629.     typeCrMustMatch,                    /* not needed for target file specs */
  630.     "special-extn:"Driver                /* Path to the file */
  631. };
  632.  
  633. resource 'infs' (fsTargetSampleSetup) {
  634.     'libr',                                /* File Type */
  635.     'OMGR',                                /* Creator */
  636.     0,                                    /* not needed for target file spec */
  637.     noSearchForFile,                    /* Do not search the target disk for the file */
  638.     typeCrMustMatch,                    /* not needed for target file specs */
  639.     "special-extn:"Setup            /* installation Path */
  640. };
  641.  
  642. resource 'infs' (fsTargetSampleTranslate) {
  643.     'libr',                                /* File Type */
  644.     'OMGR',                                /* Creator */
  645.     0,                                    /* not needed for target file spec */
  646.     noSearchForFile,                    /* Do not search the target disk for the file */
  647.     typeCrMustMatch,                    /* not needed for target file specs */
  648.     "special-extn:"Translate            /* installation Path */
  649. };
  650.  
  651.  resource 'infs' (fsTargetODBCapp) {
  652.     'APPL',                                /* File Type */
  653.     'XXXX',                                /* Creator */
  654.     kScriptCheckSetsDate,                /* ScriptCheck will fill in the creation date */
  655.     noSearchForFile,                    /* Do not search the source disk for the file */
  656.     typeCrMustMatch,                    /* file type and creator on this file must match */
  657.     ":"ODBCapp                                /* installation Path */
  658. };
  659.  
  660. /******************************************** File Atoms ************************************************/
  661. resource 'infa' (faSampleDriver) {
  662.     format0 {
  663.         deleteWhenRemoving,                /* Delete the file if remove (option-custom) is clicked    */
  664.         dontDeleteWhenInstalling,         /* don't need to predelete the target before copying new one */
  665.         copy,                             /* Copy the file to the destination */
  666.         leaveAloneIfNewer,                 /* do not Install this version, if newer one exists */
  667.         updateExisting,                 /* replace an existing copy, if mine is newer */
  668.         copyIfNewOrUpdate,                /* Copy whether the target file exists or not */
  669.         rsrcFork, dataFork,                /* Copy both forks of the file */
  670.         fsTargetSampleDriver,            /* TARGET file spec */
  671.         fsSrcSampleDriver,                 /* SOURCE file spec */
  672.         0,                                /* atom size (filled in by ScriptCheck) */
  673.         ""                                /* Atom Description (for a file Installer will use file name) */
  674.     };
  675. };
  676.  
  677. resource 'infa' (faSampleDBMSSetup) {
  678.     format0 {
  679.         deleteWhenRemoving,                /* Delete the file if remove (option-custom) is clicked    */
  680.         dontDeleteWhenInstalling,         /* don't need to predelete the target before copying new one */
  681.         copy,                             /* Copy the file to the destination */
  682.         leaveAloneIfNewer,                 /* do not Install this version, if newer one exists */
  683.         updateExisting,                 /* replace an existing copy, if mine is newer */
  684.         copyIfNewOrUpdate,                /* Copy whether the target file exists or not */
  685.         rsrcFork, dataFork,                /* Copy both forks of the file */
  686.         fsTargetSampleSetup,                /* TARGET file spec */
  687.         fsSrcSampleSetup,             /* SOURCE file spec */
  688.         0,                                /* atom size (filled in by ScriptCheck) */
  689.         ""                                /* Atom Description (for a file Installer will use file name) */
  690.     };
  691. };
  692.  
  693. resource 'infa' (faSampleDataTranslate) {
  694.     format0 {
  695.         deleteWhenRemoving,                /* Delete the file if remove (option-custom) is clicked    */
  696.         dontDeleteWhenInstalling,         /* don't need to predelete the target before copying new one */
  697.         copy,                             /* Copy the file to the destination */
  698.         leaveAloneIfNewer,                 /* do not Install this version, if newer one exists */
  699.         updateExisting,                 /* replace an existing copy, if mine is newer */
  700.         copyIfNewOrUpdate,                /* Copy whether the target file exists or not */
  701.         rsrcFork, dataFork,                /* Copy both forks of the file */
  702.         fsTargetSampleTranslate,            /* TARGET file spec */
  703.         fsSrcSampleTranslate,         /* SOURCE file spec */
  704.         0,                                /* atom size (filled in by ScriptCheck) */
  705.         ""                                /* Atom Description (for a file Installer will use file name) */
  706.     };
  707. };
  708.  
  709. resource 'infa' (faODBCapp) {
  710.     format0 {
  711.         deleteWhenRemoving,                /* Delete the file if remove (option-custom) is clicked    */
  712.         dontDeleteWhenInstalling,         /* don't need to predelete the target before copying new one */
  713.         copy,                             /* Copy the file to the destination */
  714.         leaveAloneIfNewer,                 /* do not Install this version, if newer one exists */
  715.         updateExisting,                 /* replace an existing copy, if mine is newer */
  716.         copyIfNewOrUpdate,                /* Copy whether the target file exists or not */
  717.         rsrcFork, dataFork,                /* Copy both forks of the file */
  718.         fsTargetODBCapp,                /* TARGET file spec */
  719.         fsSrcODBCapp,                     /* SOURCE file spec */
  720.         0,                                /* atom size (filled in by ScriptCheck) */
  721.         ""                                /* Atom Description (for a file Installer will use file name) */
  722.     };
  723. };
  724. #endif